package com.doubi.vo;

import java.util.HashMap;
import java.util.Map;

/**
 * web 上传文件返回格式
 * MrDoubi
 * 2019年1月3日 16:10:00
 */
public class AppFileModel {
    private int code;
    private String msg;
    private Map<String,String> data;
    private String src;
    private String title;
    public AppFileModel(){

    }

    public AppFileModel(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public AppFileModel(int code, String msg, String src, String title) {
        this.code = code;
        this.msg = msg;
        this.src = src;
        this.title = title;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Map<String, String> getData() {
        data = new HashMap<>();
        data.put("src",src);
        data.put("title",title);
        return data;
    }

    public void setData(Map<String, String> data) {
        this.data = data;
    }

    public String getSrc() {
        return src;
    }

    public void setSrc(String src) {
        this.src = src;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
